<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <meta name="layout" content="main"/>
        <g:javascript library="app/menu"/>
    </head>
    <body>
      <h1>Exibir Menu</h1><hr/>
          <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
          </g:if>
          <br/>
          <div>
                <table class="textoverdana">
                    <tbody>
                        <tr>
                            <td valign="top">Descrição:</td>
                            <td valign="top">${fieldValue(bean:menu, field:'descricao')}</td>
                        </tr>                        
                        <tr>
                            <td valign="top">Criado em:</td>
                            <td valign="top"><g:formatDate format="dd/MM/yyyy - HH:mm:ss" date="${menu.dateCreated}"/></td>
                        </tr>
                        <tr>
                            <td valign="top">Criado por:</td>
                            <td valign="top">${menu.usuarioCreated.nome + ' - ' + menu.usuarioCreated.login}</td>
                        </tr>
                        <tr>
                            <td valign="top">Atualizado em:</td>
                            <td valign="top"><g:formatDate format="dd/MM/yyyy - HH:mm:ss" date="${menu.lastUpdated}"/></td>
                        </tr>
                        <tr>
                            <td valign="top">Atualizado por:</td>
                            <td valign="top">${menu.usuarioUpdated.nome + ' - ' + menu.usuarioUpdated.login}</td>
                        </tr>
                    </tbody>
                </table>
            </div>
          <p align="left">
              <g:form controller="menu">
                    <input type="hidden" name="id" value="${menu?.id}" />
                    <g:actionSubmit class="botao" id="atualizar" action="edit" value="Editar" />
                    <g:actionSubmit class="botao" id="deletar" action="delete" value="Apagar" onclick="return confirm('Deseja realmente apagar?');"/>
                    <g:link action="list"><input class="botao" id="voltar" type="button" value="Voltar" /></g:link>
              </g:form>
          </p>            
    </body>
</html>

